# -*- coding: utf-8 -*-
"""
Created on Fri Jun  9 11:27:35 2017

@author: WANGWEIW23
"""
#!/usr/bin/python
_DEBUG=True 
def debug_demo(val):
    if _DEBUG == True: 
        import pdb 
        pdb.set_trace() 
    if val<=1600:
        print("leve1")
    elif val<=3500:
        print("level2")
        print((val - 1600) * 0.05) 
    elif val<=6500:
        print("level 3") 
        print((val - 3500) * 0.10 + (3500-1600) * 0.05)
    else: 
        print("level 4") 
        print((val - 6500) * 0.20 + (6500-3500) * 0.10 + (3500-1600) * 0.05) 
        
#~def debug_demo
if __name__ == "__main__": 
    debug_demo(4500)

